<!DOCTYPE html>
<html
        xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org"
        layout:decorate="~{base/layout}">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消息中心-我的通知</title>
</head>
<div layout:fragment="content">
    <div class="med_tittle_section">
        <div class="med_img_overlay"></div>
        <div class="container">
            <div class="row">
                <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div class="med_tittle_cont_wrapper">
                        <div class="med_tittle_cont">
                            <ol class="breadcrumb">
                                <li><a th:href="@{/}">系统首页</a></li>
                                <li>消息中心</li>
                            </ol>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="page-container" style="background-color: lavender;">
        <div class="container">
            <div class="row med_bottompadder50">
                <div class="col-lg-3 col-md-3 col-sm-4 col-xs-12">
                    <li style="font-size: x-large;margin-top: 20px;margin-bottom: 20px;">
                        <a th:href="@{/chat}" style="color: #839d85;">消息列表</a>
                    </li>
                    <div class="lyear-layout-sidebar-scroll">
                        <nav class="sidebar-main">
                            <ul class="nav nav-drawer">
                                <li class="nav-item" style="display: block;padding-top: 5px;padding-bottom: 5px;background-color: #4cae4c;font-size: 18px;border-bottom: #8fafe4 1px solid;">
                                    <a th:href="@{/chat}" style="color: #ffffff;">
                                        <i class="iconfont icon-home"></i>我的聊天</a>
                                </li>
                                <li class="nav-item" style="display: block;padding-top: 5px;padding-bottom: 5px;background-color: white;font-size: 18px;border-bottom: #8fafe4 1px solid;border-left: 3px solid #4cae4c;">
                                    <a th:href="@{/auditResult}" style="color: #4cae4c;">
                                        <i class="iconfont icon-home"></i>我的通知</a>
                                </li>
                                <li class="nav-item" style="display: block;padding-top: 5px;padding-bottom: 5px;background-color: #4cae4c;font-size: 18px;border-bottom: #8fafe4 1px solid;">
                                    <a th:href="@{/information/mypush}" style="color: #ffffff;">
                                        <i class="iconfont icon-home"></i>我的发布</a>
                                </li>
                            </ul>
                        </nav>
                    </div>
                </div>
                <div class="col-lg-9 col-md-9 col-sm-12 col-xs-12">
                    <div class="filter-type-box cy-tabs" style="background-color: transparent;margin-top: 30px">
                        <ul class="nav nav-tabs mb-10">
                            <li class="active">
                                <a th:href="@{/auditResult}"><i class="fa"></i>民事直说审理通知</a></li>
                            <li class="''">
                                <a th:href="@{/auditResult2}"><i class="fa"></i>招工就业审核通知</a></li>
                            <li class="''">
                                <a th:href="@{/auditResult2}"><i class="fa"></i>房屋租赁审核通知</a></li>
                            <li class="pull-right">
                                <div class="search-tags">
                                </div>
                            </li>
                        </ul>
                    </div>
                    <div th:each="feedbackResultDTO:${page.content}" class="cy-news-grid-item">
                        <div class="cy-media-body">
                            <div class="cy-grid-body">
                                <h5>
                                    <a><i class="fa fa-tag"></i></a>
                                    <i th:text="${feedbackResultDTO.type}"></i>
                                    <a><i class="fa fa-book"></i></a>
                                    <a th:href="@{/information/recruitmentDetailsUI(id=${feedbackResultDTO.contentTitle})}"
                                       th:text="'反馈标题 : ' + ${feedbackResultDTO.contentTitle}"></a>

                                </h5>
                                <small th:if="${feedbackResultDTO.auditStatus}=='审理中'"
                                       th:text="${feedbackResultDTO.dealDescribe}"></small>
                                <small th:if="${feedbackResultDTO.auditStatus}=='审理结束'"
                                       th:text="${feedbackResultDTO.endDescribe}"></small>
<!--                                <div th:text="${recruitmentResultDTO.dealDescribe}"></div>-->
                            </div>

                            <div class="cy-btm-info">
                                <div class="cy-btm-date" th:text="${feedbackResultDTO.updateTime}" style="text-indent: 2em;"></div>
                                <div th:if="${feedbackResultDTO.auditStatus}=='审理中'" class="cy-btm-tags">
                                    <button th:class="content_look"
                                            th:attr="update-id=${feedbackResultDTO.id}, update-type=${feedbackResultDTO.type}, update-name = ${feedbackResultDTO.contentTitle}"
                                            th:text="查看" style="font-weight: bold; height: 22px;padding-top: 0px;"></button>
                                    <button th:class="describe_look"
                                            th:attr="update-id=${feedbackResultDTO.id}, update-type=${feedbackResultDTO.type}, update-name = ${feedbackResultDTO.contentTitle}, update-auditStatus='审理中'"
                                            th:text="${feedbackResultDTO.auditStatus}" style="font-weight: bold; color: #4fa718;height: 22px;padding-top: 0px;">审核状态</button>
                                </div>
                                <div th:if="${feedbackResultDTO.auditStatus}=='审理结束'" class="cy-btm-tags">
                                    <button th:class="content_look"
                                            th:attr="update-id=${feedbackResultDTO.id}, update-type=${feedbackResultDTO.type}, update-name = ${feedbackResultDTO.contentTitle}"
                                            th:text="查看" style="font-weight: bold; height: 22px;padding-top: 0px;"></button>
                                    <button th:class="describe_look"
                                            th:attr="update-id=${feedbackResultDTO.id}, update-type=${feedbackResultDTO.type}, update-name = ${feedbackResultDTO.contentTitle}, update-auditStatus='审理结束'"
                                            th:text="${feedbackResultDTO.auditStatus}" style="font-weight: bold; color: #4b55d3;height: 22px;padding-top: 0px;">审核状态</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div th:insert="~{base/pageable}"></div>
                </div>

                <!-- 审理民事直说-检举控告信息的模态框 -->
                <div class="modal fade" id="reportUpdateModal" tabindex="-1"
                     role="dialog" aria-labelledby="myModalLabel" style="overflow-x: hidden;overflow-y: auto;">
                    <div class="modal-dialog" role="document" style="width: 700px;">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                        aria-label="Close">
                                    <span aria-hidden="true">&times;</span>
                                </button>
                                <h4 class="modal-title">检举控告信息</h4>
                            </div>
                            <div class="modal-body">
                                <!--要提交的表单 -->
                                <form class="form-horizontal" id="form-submit" enctype="multipart/form-data" method="post">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">举报人姓名：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackName_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">举报人身份证号：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackPostcard_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">举报人联系方式：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackTelephone_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">举报人政治面貌：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackPolitical_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">举报人职位：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackPosition_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">举报人居住地址：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackAddress_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">被举报人姓名：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="beName_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">被举报人工作单位：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="beUnit_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">被举报人职务：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="bePosition_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">被举报人级别：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="beLevel_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">举报内容标题：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="contentTitle_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">举报内容类型：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="contentCategory_update_input_report">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">举报正文：</label>
                                        <div class="col-sm-7">
                                                <textarea type="text" rows="10" cols="65" class="form-control-static"
                                                          id="contentMain_update_input_report">
                                                </textarea>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">反馈类型</label>
                                        <div class="col-sm-5">
                                            <select class="form-control" name="type" id="type_update_input_report">
                                                <option value="">请选择</option>
                                                <option th:each="contentType:${typeList}"
                                                        th:value="${contentType}"
                                                        th:text="${contentType}"></option>
                                            </select>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                </form>
                            </div>
<!--                            <div class="modal-footer">-->
<!--                                <button type="button" class="btn btn-default"-->
<!--                                        data-dismiss="modal">关闭-->
<!--                                </button>-->
<!--                                <button type="button" class="btn btn-primary"  th:attr="update-id=0, update-name = '',update-type = ''"-->
<!--                                        id="report_update_btn" onclick="updateDeal()">审理中-->
<!--                                </button>-->
<!--                            </div>-->
                        </div>
                    </div>
                </div>

                <!-- 审理民事直说-群众诉求信息的模态框 -->
                <div class="modal fade" id="complaintUpdateModal" tabindex="-1"
                     role="dialog" aria-labelledby="myModalLabel" style="overflow-x: hidden;overflow-y: auto;">
                    <div class="modal-dialog" role="document" style="width: 700px;">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                        aria-label="Close">
                                    <span aria-hidden="true">&times;</span>
                                </button>
                                <h4 class="modal-title">群众诉求信息</h4>
                            </div>
                            <div class="modal-body">
                                <!--要提交的表单 -->
                                <form class="form-horizontal" id="form-submit2" enctype="multipart/form-data" method="post">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉人姓名：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackName_update_input_complaint">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉人身份证号：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackPostcard_update_input_complaint">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉人联系方式：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackTelephone_update_input_complaint">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉人政治面貌：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackPolitical_update_input_complaint">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉人职位：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackPosition_update_input_complaint">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉人居住地址：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackAddress_update_input_complaint">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉类型：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="complaintCategory_update_input_complaint">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉原处理情况：</label>
                                        <div class="col-sm-5">
                                                <textarea  type="text" rows="4" cols="65" class="form-control-static"
                                                           id="complaintSituation_update_input_complaint">
                                                </textarea>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉内容标题：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="contentTitle_update_input_complaint">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉内容类型：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="contentCategory_update_input_complaint">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">申诉正文：</label>
                                        <div class="col-sm-5">
                                                <textarea type="text" rows="10" cols="65" class="form-control-static"
                                                          id="contentMain_update_input_complaint">
                                                </textarea>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">反馈类型</label>
                                        <div class="col-sm-5">
                                            <select class="form-control" name="type" id="type_update_input_complaint">
                                                <option value="">请选择</option>
                                                <option th:each="contentType:${typeList}"
                                                        th:value="${contentType}"
                                                        th:text="${contentType}"></option>
                                            </select>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                </form>
                            </div>
<!--                            <div class="modal-footer">-->
<!--                                <button type="button" class="btn btn-default"-->
<!--                                        data-dismiss="modal">关闭-->
<!--                                </button>-->
<!--                                <button type="button" class="btn btn-primary"  th:attr="update-id=0, update-name = '',update-type = ''"-->
<!--                                        id="complaint_update_btn" onclick="updateDeal()">查看审理描述-->
<!--                                </button>-->
<!--                            </div>-->
                        </div>
                    </div>
                </div>
                <!-- 审理民事直说-批评建议信息的模态框 -->
                <div class="modal fade" id="proposalUpdateModal" tabindex="-1"
                     role="dialog" aria-labelledby="myModalLabel" style="overflow-x: hidden;overflow-y: auto;">
                    <div class="modal-dialog" role="document" style="width: 700px;">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                        aria-label="Close">
                                    <span aria-hidden="true">&times;</span>
                                </button>
                                <h4 class="modal-title">批评建议信息</h4>
                            </div>
                            <div class="modal-body">
                                <!--要提交的表单 -->
                                <form class="form-horizontal" id="form-submit3" enctype="multipart/form-data" method="post">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">反映人姓名：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackName_update_input_proposal">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">反映人身份证号：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackPostcard_update_input_proposal">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">反映人联系方式：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackTelephone_update_input_proposal">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">反映人政治面貌：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackPolitical_update_input_proposal">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">反映人职位：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackPosition_update_input_proposal">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">反映人居住地址：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="feedbackAddress_update_input_proposal">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">批评建议内容标题：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="contentTitle_update_input_proposal">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">批评建议内容类型：</label>
                                        <div class="col-sm-5">
                                            <p class="form-control-static"
                                               id="contentCategory_update_input_proposal">
                                            </p>
                                            <span class="help-block"></span>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">批评建议正文：</label>
                                        <div class="col-sm-5">
                                                <textarea type="text" rows="10" cols="65" class="form-control-static"
                                                          id="contentMain_update_input_proposal">
                                                </textarea>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">反馈类型</label>
                                        <div class="col-sm-5">
                                            <select class="form-control" name="type" id="type_update_input_proposal">
                                                <option value="">请选择</option>
                                                <option th:each="contentType:${typeList}"
                                                        th:value="${contentType}"
                                                        th:text="${contentType}"></option>
                                            </select>
                                        </div>
                                        <div class="col-sm-1">
                                            <em style="color: red">*</em>
                                        </div>
                                    </div>
                                </form>
                            </div>
<!--                            <div class="modal-footer">-->
<!--                                <button type="button" class="btn btn-default"-->
<!--                                        data-dismiss="modal">关闭-->
<!--                                </button>-->
<!--                                <button type="button" class="btn btn-primary"  th:attr="update-id=0, update-name = '',update-type = ''"-->
<!--                                        id="proposal_update_btn" onclick="updateDeal()">查看审理描述-->
<!--                                </button>-->
<!--                            </div>-->
                        </div>
                    </div>
                </div>

                <!-- 处理民事直说信息的模态框 -->
                <div class="modal fade" id="auditUpdateModal" tabindex="-2"
                     role="dialog" aria-labelledby="myModalLabel">
                    <div class="modal-dialog" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal"
                                        aria-label="Close">
                                    <span aria-hidden="true">&times;</span>
                                </button>
                                <h4 class="modal-title">查看审理描述</h4>
                            </div>
                            <div class="modal-body">
                                <!--要提交的表单 -->
                                <form class="form-horizontal" id="form-submit-audit">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">审理状态：</label>
                                        <div class="col-sm-7">
                                            <div class="example-box">
                                                <label class="lyear-radio radio-inline"> <input
                                                        type="radio" name="auditStatus"
                                                        value="审理中" checked="checked"><span>审理中</span>
                                                </label> <label class="lyear-radio radio-inline"> <input
                                                    type="radio" name="auditStatus"
                                                    value="审理结束"> <span>审理结束</span>
                                            </label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">审理中描述：</label>
                                        <div class="col-sm-7">
                                                <p type="text" rows="10" cols="45" class="form-control-static"
                                                          id="auditDescribe_deal">
                                                </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">审理结束描述：</label>
                                        <div class="col-sm-7">
                                                <p type="text" rows="10" cols="45" class="form-control-static"
                                                          id="auditDescribe_end">
                                                </p>
                                            <span class="help-block"></span>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default"
                                        data-dismiss="modal">关闭
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script th:src="@{/chat/layui/layui.all.js}"></script>
    <script th:src="@{/js/jquery_min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/wow.min.js}"></script>
    <script th:src="@{/js/custom.js}"></script>
    <script th:src="@{/plugins/slider-pro/js/jquery.sliderPro.min.js}"></script>
    <script th:src="@{/plugins/owlcarousel/js/owl.carousel.min.js}"></script>
    <script th:src="@{/layer/layer.js}"></script>
    <script th:inline="javascript">
        //点击编辑按钮时触发事件
        $(document).on("click", ".content_look", function () {
            // console.log($(this).attr("update-id"));
            //把民事反馈的id传递给模态框的更新按钮
            var id = $(this).attr("update-id");
            var type = $(this).attr("update-type");
            console.log(id);
            console.log(type);
            if(type == '检举控告'){
                getReportInfo(id);
                $("#report_update_btn").attr("update-id", $(this).attr("update-id"));
                $("#report_update_btn").attr("update-type", $(this).attr("update-type"));
                $("#report_update_btn").attr("update-name", $(this).attr("update-name"));
                $("#reportUpdateModal").modal({
                    backdrop: "static"
                });
            }
            if(type == '群众诉求'){
                getComplaintInfo(id);
                $("#complaint_update_btn").attr("update-id", $(this).attr("update-id"));
                $("#complaint_update_btn").attr("update-type", $(this).attr("update-type"));
                $("#complaint_update_btn").attr("update-name", $(this).attr("update-name"));
                $("#complaintUpdateModal").modal({
                    backdrop: "static"
                });
            }
            if(type == '批评建议'){
                getProposalInfo(id);
                $("#proposal_update_btn").attr("update-id", $(this).attr("update-id"));
                $("#proposal_update_btn").attr("update-type", $(this).attr("update-type"));
                $("#proposal_update_btn").attr("update-name", $(this).attr("update-name"));
                $("#proposalUpdateModal").modal({
                    backdrop: "static"
                });
            }

        });

        //根据id查出检举控告并显示
        function getReportInfo(id) {
            $.ajax({
                url: "/platform/system/village/getVillageFeedbackById?id=" + id,
                type: "GET",
                success: function (result) {
                    var feedbackDTO = result.extend.feedbackDTO;

                    //显示数据之前先清除一下校验样式，如果有的话
                    reset_form("#reportUpdateModal form");

                    $("#feedbackName_update_input_report").text(feedbackDTO.feedbackName);
                    $("#feedbackPostcard_update_input_report").text(feedbackDTO.feedbackPostcard);
                    $("#feedbackTelephone_update_input_report").text(feedbackDTO.feedbackTelephone);
                    $("#feedbackPolitical_update_input_report").text(feedbackDTO.feedbackPolitical);
                    $("#feedbackAddress_update_input_report").text(feedbackDTO.feedbackAddress);
                    $("#feedbackPosition_update_input_report").text(feedbackDTO.feedbackPosition);
                    $("#beName_update_input_report").text(feedbackDTO.beName);
                    $("#beUnit_update_input_report").text(feedbackDTO.beUnit);
                    $("#bePosition_update_input_report").text(feedbackDTO.bePosition);
                    $("#beLevel_update_input_report").text(feedbackDTO.beLevel);
                    $("#contentTitle_update_input_report").text(feedbackDTO.contentTitle);
                    $("#contentCategory_update_input_report").text(feedbackDTO.contentCategory);
                    $("#contentMain_update_input_report").text(feedbackDTO.contentMain);
                    $("#type_update_input_report").val(feedbackDTO.type);

                }
            });
        }
        // 根据id查询群众诉求信息
        function getComplaintInfo(id) {
            $.ajax({
                url: "/platform/system/village/getVillageFeedbackById?id=" + id,
                type: "GET",
                success: function (result) {
                    var feedbackDTO = result.extend.feedbackDTO;
                    console.log(feedbackDTO.feedbackName);
                    //显示数据之前先清除一下校验样式，如果有的话
                    reset_form("#complaintUpdateModal form");

                    $("#feedbackName_update_input_complaint").text(feedbackDTO.feedbackName);
                    $("#feedbackPostcard_update_input_complaint").text(feedbackDTO.feedbackPostcard);
                    $("#feedbackTelephone_update_input_complaint").text(feedbackDTO.feedbackTelephone);
                    $("#feedbackPolitical_update_input_complaint").text(feedbackDTO.feedbackPolitical);
                    $("#feedbackAddress_update_input_complaint").text(feedbackDTO.feedbackAddress);
                    $("#feedbackPosition_update_input_complaint").text(feedbackDTO.feedbackPosition);
                    $("#complaintCategory_update_input_complaint").text(feedbackDTO.complaintCategory);
                    $("#complaintSituation_update_input_complaint").text(feedbackDTO.complaintSituation);
                    $("#contentTitle_update_input_complaint").text(feedbackDTO.contentTitle);
                    $("#contentCategory_update_input_complaint").text(feedbackDTO.contentCategory);
                    $("#contentMain_update_input_complaint").text(feedbackDTO.contentMain);
                    $("#type_update_input_complaint").val(feedbackDTO.type);
                }
            });
        }
        // 根据id查询批评建议信息
        function getProposalInfo(id) {
            $.ajax({
                url: "/platform/system/village/getVillageFeedbackById?id=" + id,
                type: "GET",
                success: function (result) {
                    var feedbackDTO = result.extend.feedbackDTO;

                    //显示数据之前先清除一下校验样式，如果有的话
                    reset_form("#proposalUpdateModal form");

                    $("#feedbackName_update_input_proposal").text(feedbackDTO.feedbackName);
                    $("#feedbackPostcard_update_input_proposal").text(feedbackDTO.feedbackPostcard);
                    $("#feedbackTelephone_update_input_proposal").text(feedbackDTO.feedbackTelephone);
                    $("#feedbackPolitical_update_input_proposal").text(feedbackDTO.feedbackPolitical);
                    $("#feedbackAddress_update_input_proposal").text(feedbackDTO.feedbackAddress);
                    $("#feedbackPosition_update_input_proposal").text(feedbackDTO.feedbackPosition);
                    $("#contentTitle_update_input_proposal").text(feedbackDTO.contentTitle);
                    $("#contentCategory_update_input_proposal").text(feedbackDTO.contentCategory);
                    $("#contentMain_update_input_proposal").text(feedbackDTO.contentMain);
                    $("#type_update_input_proposal").val(feedbackDTO.type);
                }
            });
        }

        $(document).on("click", ".describe_look", function () {
            getDescribe($(this).attr("update-id"),$(this).attr("update-auditStatus"));
            $("#auditUpdateModal").modal({
                backdrop: "static"
            });
        });

        function getDescribe(id,auditStatus){
            $.ajax({
                url: "/platform/village/getDescribeById?id=" + id,
                type: "GET",
                success: function (result) {
                    var userFeedback = result.extend.userFeedback;

                    //显示数据之前先清除一下校验样式，如果有的话
                    reset_form("#auditUpdateModal form");

                    $("#auditDescribe_deal").text(userFeedback.dealDescribe);
                    $("#auditDescribe_end").text(userFeedback.endDescribe);
                    $("#auditUpdateModal input[name=auditStatus]").val([auditStatus]);

                }
            });
        }

        //清空表单样式及内容
        function reset_form(ele) {
            $(ele)[0].reset();
            //清空表单样式
            $(ele).find("*").removeClass("has-error has-success");
            $(ele).find(".help-block").text("");
        }

        //清空表单样式
        function clean_form(ele) {
            //清空表单样式
            $(ele).find("*").removeClass("has-error has-success");
            $(ele).find(".help-block").text("");
        }
        //显示校验结果的提示信息
        function show_validate_msg(ele, status, msg) {
            //清除当前元素的校验状态
            $(ele).parent().removeClass("has-success has-error");
            $(ele).next("span").text("");
            if ("success" === status) {
                $(ele).parent().addClass("has-success");
                $(ele).next("span").text(msg);
            } else if ("error" === status) {
                $(ele).parent().addClass("has-error");
                $(ele).next("span").text(msg);
            }
        }
    </script>
</div>
</html>